package mini;


import java.util.LinkedList;
import java.util.List;

public class ParamList {

    private List<String> parameterlist;

    /**
     * This is the ability to create an empty parameter
     * list. It really should be rarely used; currently
     * only used when creating a procedure by passing
     * in a string of code.
     */
    protected ParamList() {
        parameterlist = new LinkedList<String>();
    }

    public ParamList(String name) {
        parameterlist = new LinkedList<String>();
        parameterlist.add(name);
    }

    public ParamList(String name, ParamList parlist) {
        parameterlist = parlist.getParamList();
        parameterlist.add(name);
    }

    public List<String> getParamList() {
        return parameterlist;
    }
}
